/**
 * @file bsp_led.h
 * @author your name (you@domain.com)
 * @brief 
 * @version 0.1
 * @date 2023-03-20
 * 
 * @copyright Copyright (c) 2023
 * 
 */

#ifndef __BSP_LED_H
#define __BSP_LED_H

#include "gd32f30x.h"

typedef enum 
{
    LED0 = 0U,
}led_typedef_enum;

#define LEDn                             (1U)

#define LED0_PIN                         GPIO_PIN_2
#define LED0_GPIO_PORT                   GPIOB
#define LED0_GPIO_CLK                    RCU_GPIOB

void bsp_InitLed(led_typedef_enum lednum);
void bsp_LedOn(led_typedef_enum lednum);
void bsp_LedOff(led_typedef_enum lednum);
void bsp_LedToggle(led_typedef_enum lednum);

#endif

